package lec03.pm.v3;

public class Test {

	public static void main(String[] args) {
		Shape circle=new Circle(5.0);
		Shape triangle=new Triangle(3.0,4.0,5.0);
		Shape rectangle=new Rectangle(5.0,10.0);
		double cArea=circle.getArea();
		double tArea=triangle.getArea();
		double rArea=rectangle.getArea();
		System.out.println(cArea+tArea+rArea);
		
	}
}
